{% extends 'base/base.html' %}
{% load static %}

{% block title %}
    订单详情
{% endblock %}

{% block extjs %}
    <script src="{% static 'order/orderdetail.js' %}"></script>
{% endblock %}

{% block content %}
    <div class="orderdetail" style="margin-left: 50px;margin-top: 20px;font-size: 18px;color: black;">
        <p>
            订单号:{{ order.identifier }}
        </p>
        <ul>
            {% for ordergoods in order.ordergoods_set.all %}
                <li>

                    <br>
                    <span>{{ ordergoods.goods.productlongname }}</span>
                    <i>x{{ ordergoods.number }}</i><br>

                </li>
            {% endfor %}
        </ul>
        <button class="btn btn-default" id="alipay" data-orderid="{{ order.id }}" style="width: 100px;padding: 3px;font-size: 16px;color: black;margin-bottom: 20px;">支付</button>

    </div>
{% endblock %}